package jp.co.ricoh.melody.views.base;

import android.view.ViewGroup;

/**
 * Copyright (C) 2016 RICOH Co.,LTD.
 * All rights reserved.
 * <p/>
 * Base view interface for all collection views such as RecyclerView, ListView, GridView
 *
 * @param <A> A specific adapter
 * @param <H> A specific view holder
 * @param <D> A specific item data
 */
public interface BaseCollectionView<A, H, D> {
    H onCreateViewHolder(ViewGroup parent, int viewType);

    void onBindViewHolder(H viewHolder, D itemData);

    void setAdapter(A adapter);
}
